package com.iot.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.iot.domain.Album;
import com.iot.domain.AlbumVo;
import com.iot.domain.MvFile;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Set;

public interface RedisService {



    // 保存数据到redis
    public  void  saveFile(Album album, List<MvFile> files) throws JsonProcessingException;

    /*获取所有的文件*/
    public Set<String> findAllPicture();

    /*判断是否存在相册*/

    public Boolean existAlbum(String albumName);


    /*通过相册名获取相册的照片*/
    public Album findPictureByAlbumName(String albumName) throws IOException;

    /*找到创建的所有的相册*/
    public List<AlbumVo> findAllAlbum() throws IOException;

    /*为指定的相册上传照片*/
    public void uploadPictureByName(String albumName,List<MvFile>  file) throws JsonProcessingException;



}
